package cn.wenhe9.yygh.model.hosp;

import cn.wenhe9.yygh.model.base.BaseMongoEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author DuJinliang
 * 2022/3/27
 */
@ApiModel(description = "Department")
@Document("Department")
public class Department extends BaseMongoEntity {
    public static final long serialVersionUID = 1L;

    @ApiModelProperty("医院编号")
    @Indexed //普通索引
    private String hoscode;

    @ApiModelProperty("科室编号")
    @Indexed(unique = true)
    private String depcode;

    @ApiModelProperty("科室名称")
    private String depname;

    @ApiModelProperty("科室描述")
    private String intro;

    @ApiModelProperty("大科室编号")
    private String bigcode;

    @ApiModelProperty("大科室名称")
    private String bigname;

    public String getHoscode() {
        return hoscode;
    }

    public void setHoscode(String hascode) {
        this.hoscode = hascode;
    }

    public String getDepcode() {
        return depcode;
    }

    public void setDepcode(String depcode) {
        this.depcode = depcode;
    }

    public String getDepname() {
        return depname;
    }

    public void setDepname(String depname) {
        this.depname = depname;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getBigcode() {
        return bigcode;
    }

    public void setBigcode(String bigcode) {
        this.bigcode = bigcode;
    }

    public String getBigname() {
        return bigname;
    }

    public void setBigname(String bigname) {
        this.bigname = bigname;
    }
}
